<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>

<sx:div id="see" cssStyle="border: 0px solid black;text-align:center" >
	<table border="1" align="center">
	<tr>创建新用户</tr>
		<tr>
	<td>用户名</td>
	<td>全名</td>

	
	</tr>
		<s:iterator  value="list" status="st" >
		<s:if test="#st.isOdd()==true">
			<tr>
		</s:if>
		<s:url id="one" value="edit.action" method="POST">
			<s:param name="id" >
			<s:property value="id" />
			</s:param>
			<s:param name="objectName"  >	
			HosUser
			</s:param>
		</s:url> 
		
		
		<td   style="BORDER-bottom: #006699 1px dotted">
		<s:a target="_blank" href="%{one}" disabled="true" target="_blank">
			<s:property value="username" />
		</s:a> </td>
		<td   style="BORDER-bottom: #006699 1px dotted">
		<s:a target="_blank" href="%{one}" disabled="true" target="_blank">
			<s:property value="userRealName" />
		</s:a> </td>
		<s:if test="#st.isOdd()==true">
			</tr>
		</s:if>
	</s:iterator>
	</table>
	<!-- 首页 -->
	<s:url id="url_first" value="listPage.action">
		<s:param name="pageNow" value="1"></s:param>
	</s:url>
	<!-- 上一页 -->
	<s:url id="url_pre" value="listPage.action">
		<s:param name="pageNow" value="pageNow-1"></s:param>	
	</s:url>
	<!-- 下一页 -->
	<s:url id="url_next" value="listPage.action">
		<s:param name="pageNow" value="pageNow+1"></s:param>	
	</s:url>
	<!-- 末页 -->
	<s:url id="url_last" value="listPage.action">
		<s:param name="pageNow" value="pageTotle"></s:param>	
	</s:url>
	<!-- 如果不是首页则提供首页的链接,如果是首页则不提供链接,以下类似 -->
	<s:if test="pageNow != 1"> 
            [<sx:a targets="see" href="%{url_first}">首页</sx:a>]      
        </s:if>
	<s:else> 
            [首页] 
        </s:else>
	<s:if test="pageNow>1"> 
            [<sx:a targets="see" href="%{url_pre}">上一页</sx:a>]  
        </s:if>
	<s:else> 
            [上一页]  
        </s:else>
	<s:iterator value="list" status="status">
		<s:url id="url" value="listPage.action">
			<s:param name="pageNow" value="pageNow" />
			<s:param name="pageTotle" value="pageTotle" />
		</s:url>
	</s:iterator>
	<s:if test=" pageTotle > pageNow "> 
            [<sx:a targets="see" href="%{url_next}">下一页</sx:a>] 
        </s:if>
	<s:else> 
            [下一页] 
        </s:else>
	<s:if test="pageTotle != pageNow"> 
            [<sx:a targets="see" href="%{url_last}">末页</sx:a>] 
        </s:if>
	<s:else> 
            [末页] 
        </s:else>
	<br>
</sx:div>
